|
|
Hi,
I'm trying to make the expanding cloud of an explosion by shaping an
isosurface to roughly the shape of the explosion, and then filling it
with scattering media, so it doesn't look so firm. The problem is,
I get a mostly black object. The same interior parameters on a sphere
give me a nicely cloudy looking sphere. Where have I gone wrong?
short sources are below, I've been turning one or the other objects
off by commenting/uncommenting the no_image line.
thanks,
tom
camera
{
up <0, 1, 0>
right <1, 0, 0>
location <-3,0,-30>
look_at <0,0,0>
angle 10
}
#include "colors.inc"
#include "functions.inc"
light_source { <200,180,-300> color rgb <1,1,1> }
sky_sphere { pigment { color rgb <0.8 0.8 1.0> } }
#declare S = function {x*x + y*y + z*z - 2}
//noisy sphere
#declare NS = function {x*x + y*y + z*z - 2 + f_noise3d(x*3,y*3,z*3)*1.2 }
isosurface {
function { NS(x,y,z)
- f_noise3d(f_ph(x-2.5,y,z)*40, 0, f_th(x-2.5,y,z)*40)*(x-3)/1.5 }
max_gradient 15
contained_by { sphere { <0,0,0>, 6 } }
pigment { rgbt 1 } hollow
interior { media { scattering { 1, 0.05 extinction 0.0 } } }
//no_image no_shadow no_reflection
}
sphere { 0,2
pigment { rgbt 1 } hollow
interior { media { scattering { 1, 0.05 extinction 0.0 } } }
no_image no_shadow no_reflection
}
Post a reply to this message
|
|